<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/1/31
  Time: 13:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      //域范围从小到大
      pageContext.setAttribute("name","page_v");
      request.setAttribute("name","request_v");
      session.setAttribute("name","session_v");
      application.setAttribute("name","application_v");
  %>
  <h1>全域查找（小到大）</h1>
  <h3>${name}</h3>
  <hr/>
  <h1>page</h1>
  <h3>${pageScope.name}</h3>
  <hr/>
  <h1>request</h1>
  <h3>${requestScope.name}</h3>
  <hr/>
  <h1>session</h1>
  <h3>${sessionScope.name}</h3>
  <hr/>
  <h1>application</h1>
  <h3>${applicationScope.name}</h3>
</body>
</html>
